package de.tabuma.logging.logik;

import de.tabuma.logging.entity.*;
import java.util.*;
import java.util.*;
import java.util.logging.*;

/**
 *
 * @author alefen
 */
public class LogFieldFacade {

    private static final Logger log = Logger.getLogger(LogFieldFacade.class.getName());

    public static int create(LogField logField) {
        return (int) PMF.doCreate(logField);
    }

    public static List<LogField> get(int logEntryId) {
        String key[] = new String[1];
        key[0] = "logEntryId";
        String value[] = new String[1];
        value[0] = ""+logEntryId;
        return PMF.get(key, value, new LogField());
    }
}
